import { instance as request } from "../utils/request";
export const getOrderRandomCode = () => {
    return request({
        url: "/getOrderRandomCode",
        method: "get",
    });
};


export const addOrder = (data: any) => {
    return request({
        url: "/addOrder",
        method: "post",
        data
    });
};

export const getOrder = (data: any) => {
    return request({
        url: "/getOrder",
        method: "post",
        data
    });
};

export const putOrder = (data: any) => {
    return request({
        url: "/putOrder",
        method: "post",
        data
    });
};

export const delOrder = (data: any) => {
    return request({
        url: "/delOrder",
        method: "post",
        data
    });
};

export const orderlList = ({ data, params }: { data: any; params: any }) => {
    return request({
        url: "/orderlList",
        method: "get",
        data,
        params

    });
};

